# -*- coding: UTF-8 -*-
from django.conf.urls.defaults import *

info_dict = {
    'app_label': 'blog',
    'module_name': 'entrees',
    'date_field': 'date_pub',
}

urlpatterns = patterns('django.views.generic.date_based',
   (r'^(?P<day>\w{1,2})/(?P<month>[a-z]{3})/(?P<year>\d{4})/(?P<slug>\w+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
   (r'^(?P<day>\w{1,2})/(?P<month>[a-z]{3})/(?P<year>\d{4})/$', 'archive_day', info_dict),
   (r'^(?P<month>[a-z]{3})/(?P<year>\d{4})/$', 'archive_month', info_dict),
   (r'^(?P<year>\d{4})/$', 'archive_year', info_dict),
   (r'^/?$', 'archive_index', info_dict),
)
